From 80d97117fdb6f557e53e12256f75619de3162488 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Mon, 10 Dec 2012 20:05:39 +0000 Subject: [PATCH] Quovadis: don't crash on bad input. --- gpsbabel/quovadis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/quovadis.c b/gpsbabel/quovadis.c index 67dd99d87..7c1908186 100644 --- a/gpsbabel/quovadis.c +++ b/gpsbabel/quovadis.c @@ -112,7 +112,7 @@ data_read(void) pdbrec_t *pdb_rec; int i; - if ((file_in->creator != MYCREATOR) || (file_in->type != MYTYPE)) { + if (!file_in->rec_list || (file_in->creator != MYCREATOR) || (file_in->type != MYTYPE)) { fatal(MYNAME ": Not a QuoVadis file.\n"); } -- 2.30.2